#include<stdio.h>

int removeDuplicates(int* nums, int numsSize) {
    int slow=1; 
    int fast=1;
    while(fast<numsSize)
    {
        if(nums[fast]!=nums[fast-1])
        {
            nums[slow]=nums[fast];
            slow++;
        }
        fast++;
    }
return slow;
}
int main()
{
    int num[6]={1,1,2,2,3,5};
   int k= removeDuplicates(num,6);
   
}